package cn.stylefeng.guns.modular.system.mapper;

import cn.stylefeng.guns.modular.system.entity.SysStudent;
import cn.stylefeng.guns.modular.system.model.StudentDto;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

/**
 * <p>
 * 学生用户关联表 Mapper 接口
 * </p>
 *
 * @author zfy
 * @since 2020-08-06
 */
public interface SysStudentMapper extends BaseMapper<SysStudent> {

    IPage<StudentDto> studentList(@Param("page") Page page,
                                  @Param("name") String name,
                                  @Param("status") String status,
                                  @Param("createUser") Long createUser,
                                  @Param("userId") Long userId);

    Map<String,Object> studentInfo(@Param("code") String code);

}
